package com.cxf.windex.controller;

import java.util.Map;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author chenxf
 * @date 3/8/2018
 * @description
 */
@Controller
@RequestMapping("")
public class HomeController {
  @RequestMapping(value = "index",method = RequestMethod.GET)
  public String index(Map<String,Object> map){
    return "admin/index";
  }

  @RequestMapping(value = "home",method = RequestMethod.GET)
  public String home(Map<String,Object> map){
    return "admin/home";
  }

  @RequestMapping(value = "login",method = RequestMethod.GET)
  public String login(Map<String,Object> map){
    return "admin/login";
  }

  @RequestMapping(value = "lawyer_list",method = RequestMethod.GET)
  public String lawyerList(Map<String,Object> map){
    return "admin/lawyer_list";
  }

  @RequestMapping(value = "lawyer_add",method = RequestMethod.GET)
  public String lawyerAdd(Map<String,Object> map){
    return "admin/lawyer_add";
  }

  @RequestMapping(value = "article_list",method = RequestMethod.GET)
  public String articleList(Map<String,Object> map){
    return "admin/article_list";
  }

  @RequestMapping(value = "article_add",method = RequestMethod.GET)
  public String articleAdd(Map<String,Object> map){
    return "admin/article_add";
  }

  @RequestMapping(value = "reset_pwd",method = RequestMethod.GET)
  public String pwd(Map<String,Object> map){
    return "admin/reset_pwd";
  }

}
